#define _CRT_SECURE_NO_WARNINGS 1
#include "List.h"
int main() {
	bit::list<int> a;
	a.push_back(1);
	a.push_back(2);
	a.push_back(3);
	a.push_back(4);
	a.push_back(5);
	a.push_back(6);
	a.push_back(7);
	a.push_back(8);
	bit::list<int>::iterator it = a.begin();
	while (it != a.end())
	{
		std::cout << *it << " ";
		it++;
	}
	std::cout << std::endl;
	a.pop_back();
	a.pop_back();
	a.pop_back();
	a.pop_front();
	it = a.begin();
	while (it != a.end())
	{
		std::cout << *it << " ";
		it++;
	}
	std::cout << std::endl;
	a.push_back(6);
	a.push_back(7);
	a.push_back(8);
	a.push_front(1);
	it = a.begin();
	while (it != a.end())
	{
		std::cout << *it << " ";
		it++;
	}
	std::cout << std::endl;
	a.clear();
	std::cout << a.size() << std::endl;
	std::cout << a.empty() <<std::endl;
}
